package java_design_model.com.builder;

import java.util.ArrayList;
import java.util.Iterator;

public class v {
	public ArrayList<vd> vs; 
	public vd v;
	public v() {
		v=new vd();
		vs=new ArrayList();
		vs.add(v);
	}
	public void vsadd() {
		vs.add(new vd());
	}
	public void setvd(int i) {
		v.setA(i);
		}
	
	public vd setvd(String s) {
			v.setStr(s);
			return v;
	}
	public void show() {
		Iterator<vd> vi=vs.iterator();
		vd temp;
		while(vi.hasNext()) {
			temp=vi.next();
			System.out.println("a:"+temp.getA());
		}
	}

}
